package com.lyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyun.pojo.Comment;
import com.lyun.vo.CommentsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    @Select("select count(1) from tbl_comment where movement_id = #{movementId}")
    int getCommentCountByMovementId(Long movementId);

    List<CommentsVo> getCommentsVoListByMovementId(Long movementId);
}
